package com.elitel.frame.web.sysreqlog.dao;

import com.elitel.frame.web.sysreqlog.entity.SysReqDetail;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @author m
 * @description 针对表【sys_req_detail】的数据库操作Mapper
 * @createDate 2025-05-30 16:02:14
 * @Entity com.elitel.frame.web.sysreqlog.entity.SysReqDetail
 */
public interface SysReqDetailDao {

    int deleteByPrimaryKey(Long id);

    int insert(SysReqDetail record);

    int insertSelective(SysReqDetail record);


    int updateByPrimaryKeySelective(SysReqDetail record);

    int updateByPrimaryKey(SysReqDetail record);

    int insertBatch(@Param("list") List<SysReqDetail> list);


    List<SysReqDetail> pageSysReqDetail(@Param("startD")LocalDateTime startD,
                                        @Param("endD")LocalDateTime endD,
                                        @Param("servName")String servName,
                                        @Param("respStatus")Integer respStatus,
                                        @Param("respTime")Integer respTime,
                                        @Param("isTimeOut")Integer isTimeOut,
                                        @Param("flag")String flag,
                                        @Param("servCodes")List<String> servCodes);

    int delDetailsByReqDate(@Param("date") LocalDateTime date);
}
